import { createSelector } from '@ngrx/store';
import { CartItem, State } from './cart.reducer';

const getCartList = (state: any) => state.cart.cartList;
export const getStateSlice = () =>
  createSelector(getCartList, (state: CartItem[]) => state);
